package com.ronghui.cash.parambean;

import com.ronghui.cash.util.Validator;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

public class AuthIdentityBean {
	@NotNull(message = "姓名不能为空")
	@Pattern(regexp = Validator.REGEX_CHINESE_NAME, message = "姓名格式错误")
	private String name;

	@NotNull(message = "身份证不能为空")
	@Pattern(regexp = Validator.REGEX_ID_CARD, message = "身份证格式错误")
	private String identity;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIdentity() {
		return identity;
	}

	public void setIdentity(String identity) {
		this.identity = identity;
	}
	
}
